<template>
  <div class="m-3">
    <VxeBasicTable ref="tableRef" v-bind="gridOptions" />
  </div>
</template>
<script lang="ts" setup>
  import { VxeBasicTable } from '@mxpio/components';
  import { flowPage } from '@mxpio/bizcommon';
  import { useListCrud } from '@mxpio/common';
  import { columns, searchFormSchema } from './invFlow.data';

  const componentName = 'InvFlowList';
  defineOptions({ name: componentName });
  const { tableRef, gridOptions } = useListCrud({
    componentName,
    columns,
    searchFormSchema,
    pageApi: flowPage,
    rowConfig: {
      keyField: 'id',
    },
    toolbarConfig: {
      buttons: [],
      tools: [],
    },
  });
</script>
